﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Csla.Core;
using OpenExpressApp.Types;
using OpenExpressApp.MetaModel;

namespace OpenExpressApp.Template
{
    /// <summary>
    /// 窗口的框架模板
    /// </summary>
    public interface IFrameTemplate
    {
        /// <summary>
        /// 对应的窗口主要的view
        /// </summary>
        ObjectView View { get; }

        /// <summary>
        /// Controller
        /// </summary>
        IFrameController Controller { get; }

        /// <summary>
        /// 获取当前框架中的某个Region
        /// </summary>
        /// <param name="regionName"></param>
        /// <returns></returns>
        object GetRegion(string regionName);

        /// <summary>
        /// 布局查询面板
        /// </summary>
        void LayoutQueryPanel();

        /// <summary>
        /// 获取条件查询对象
        /// </summary>
        object GetConditionQueryObject();

        /// <summary>
        /// 获取导航查询对象
        /// </summary>
        object GetNavigateQueryObject();
    }
}